package com.demo.mappers;
import org.apache.ibatis.annotations.Param;



/**
 * @Description:评论表:mapper
 * @Date:2025-03-01
 * @author：author
*/
public interface CommentMapper<T,P> extends BaseMapper {


	/**
	 * 根据CommentId查询
	 */
	 T selectByCommentId(@Param("commentId") Long commentId);

	/**
	 * 根据CommentId更新
	 */
	 Integer updateByCommentId(@Param("bean")T t, @Param("commentId") Long commentId);

	/**
	 * 根据CommentId删除
	 */
	 Integer deleteByCommentId(@Param("commentId") Long commentId);

}